home *** CD-ROM | disk | FTP | other *** search
- %PostScript Hack by Mike Brors 12/7/90
- /DisableNextSetRGBColor
- {
- userdict begin
- /setrgbcolor
- {
- pop
- pop
- pop
- userdict begin
- /setrgbcolor systemdict /setrgbcolor get def
- end
- } def
- end
- } bind def
- /bcarray where {
- pop
- bcarray 2 {
- /da 4 ps div def
- df setfont gsave cs wi
- 1 index 0 ne{exch da add exch}if grestore setcharwidth
- cs 0 0 smc da 0 smc da da smc 0 da smc c
- gray
- { gl}
- {1 setgray}ifelse
- da 2. div dup moveto show
- }bind put
- } if
- %
- % Used to snap to device pixels, 1/4th of the pixel in.
- /stp { % x y pl x y % Snap To Pixel, pixel (auto stroke adjust)
- transform
- 0.25 sub round 0.25 add exch
- 0.25 sub round 0.25 add exch
- itransform
- } bind def
-
- /snapmoveto { % x y m - % moveto, auto stroke adjust
- stp moveto
- } bind def
-
- /snaplineto { % x y l - % lineto, auto stroke adjust
- stp lineto
- } bind def
-